<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form id="form" prependId="false">
		    
            <f:metadata>
                <f:viewParam name="projeto" value="#{lanceBean.projeto}"></f:viewParam>
            </f:metadata> 
            
             
            <h:inputHidden id="oculto" value="#{lanceBean.projeto}"/>
        

           <p:dataTable id="gridProjetos"  var="projeto" value="#{lanceBean.lances}"
                         emptyMessage="Nenhum registro encontrado"
                         paginator="true" rows="10"  
                         paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" 
                         rowKey="#{projeto.id}"
                         selection="#{lanceBean.lance}" selectionMode="single" >
                <p:ajax event="rowSelect" update="botoes" process=":form:oculto" />
                <p:column headerText="Projeto">
                    <h:outputText value="#{projeto.id}"/>
                </p:column>
                <p:column headerText="Projeto">
                    <h:outputText value="#{projeto.id}"/>
                </p:column>
                

                <f:facet name="footer">
                    <h:panelGroup id="botoes">
                       <!-- Panel de Botoes do Dono de Projeto -->
					<h:panelGroup id="panelDonoProjeto"
						rendered="${usuarioBean.perfil == 'DP'}">
						
						
					</h:panelGroup>
					
					
                    </h:panelGroup>
                </f:facet>

            </p:dataTable>
        </h:form>













        


    </h:body>
</html>

